package com.example.learning;

public class Learning1 {
    public static void main(String[] args) {
        /*Thread thread = new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("Run Learning1");
            }
        });*/

        Thread thread = new Thread(() -> System.out.println("Run Learning1"));

        thread.setName("Learning1");
        System.out.println(thread.getState());
        System.out.println(thread.getName());
        System.out.println(thread.getPriority());
        System.out.println(thread.getId());
        thread.start();
        System.out.println(thread.getState());
    }
}
